import Vue from 'vue';
import VueRouter from 'vue-router';
import DengLu from '@/views/deng-lu';
import ZhuYe from "@/views/zhu-ye";

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'home',
    component: DengLu,
    redirect: '/denglu',
  },
  {
    path: '/denglu',
    name: 'denglu',
    component: DengLu,
  },
  {
    path: '/zhuye',
    component: ZhuYe
  }
];

const router = new VueRouter({
  routes,
});

// const baimingban = ['/denglu']
// router.beforeEach((to, form, next) => {
//   // const {token}
// })

export default router;
